package com.ruoyi.travel.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.travel.mapper.TravelOrderFollowMapper;
import com.ruoyi.travel.domain.TravelOrderFollow;
import com.ruoyi.travel.service.ITravelOrderFollowService;

@Service
public class TravelOrderFollowServiceImpl implements ITravelOrderFollowService
{
    @Autowired
    private TravelOrderFollowMapper travelOrderFollowMapper;

    /**
     * 查询跟进
     *
     * @param orderFollowId 跟进主键
     * @return 跟进
     */
    @Override
    public TravelOrderFollow selectTravelOrderFollowByOrderFollowId(Long orderFollowId)
    {
        return travelOrderFollowMapper.selectTravelOrderFollowByOrderFollowId(orderFollowId);
    }

    /**
     * 查询跟进列表
     *
     * @param travelOrderFollow 跟进
     * @return 跟进
     */
    @Override
    public List<TravelOrderFollow> selectTravelOrderFollowList(TravelOrderFollow travelOrderFollow)
    {
        return travelOrderFollowMapper.selectTravelOrderFollowList(travelOrderFollow);
    }

    /**
     * 新增跟进
     *
     * @param travelOrderFollow 跟进
     * @return 结果
     */
    @Override
    public int insertTravelOrderFollow(TravelOrderFollow travelOrderFollow)
    {
        travelOrderFollow.setCreateTime(DateUtils.getNowDate());
        return travelOrderFollowMapper.insertTravelOrderFollow(travelOrderFollow);
    }

}
